

from typing import Annotated

from fastapi import Depends
from sqlalchemy.ext.asyncio.session import AsyncSession
from core.database import sessionLocal
async def get_db():
    async with sessionLocal() as db:
        yield db

        
SessionDep = Annotated[AsyncSession, Depends(get_db)]